package vuelta.general.util;

public class GestioneStringhe {

	private static GestioneStringhe _instance;

	private GestioneStringhe() {
	}

	public static GestioneStringhe getInstance() {

		if (_instance == null) {
			_instance = new GestioneStringhe();
		}
		return _instance;
	}

	public String adattaStringa(String nomeCorridore) {
		String ris = nomeCorridore.toLowerCase();
		String risbis = ris.replace(" ", "");
		// nomeCorridore.trim();
		return risbis;
	}

	public String adattaStringaWiki(String nomeCorridore) {

		String risbis = nomeCorridore.replace(" ", "_");
		// nomeCorridore.trim();
		return risbis;
	}

	public String controllaTwitter(String nomeCorridore) {
		if (nomeCorridore.equals("Ivan Basso")) {
			String basso = "twitter.com/#!/ivanbasso";
			return basso;
		} else if (nomeCorridore.equals("Vincenzo Nibali")) {
			String nibali = "twitter.com/#!/vincenzonibali";
			return nibali;
		} else if (nomeCorridore.equals("Cadel Evans")) {
			String evans = "twitter.com/#!/cadelofficial";
			return evans;
		} else if (nomeCorridore.equals("Michele Scarponi")) {
			String scarponi = "twitter.com/#!/MicheleScarponi";
			return scarponi;
		} else if (nomeCorridore.equals("Mark Cavendish")) {
			String cavendish = "twitter.com/#!/markcavendish";
			return cavendish;
		} else if (nomeCorridore.equals("Emanuele Sella")) {
			String sella = "twitter.com/#!/lelesellaom";
			return sella;
		} else if (nomeCorridore.equals("Thor Hushovd")) {
			String hushovd = "twitter.com/#!/thorhushovd";
			return hushovd;
		} else if (nomeCorridore.equals("Marco Pinotti")) {
			String pinotti = "twitter.com/#!/marcopinotti";
			return pinotti;
		} else if (nomeCorridore.equals("Philippe Gilbert")) {
			String gilbert = "twitter.com/#!/GilbertPhilippe";
			return gilbert;
		} else if (nomeCorridore.equals("Rinaldo Nocentini")) {
			String nocentini = "twitter.com/#!/rinaldonoce";
			return nocentini;

		} else if (nomeCorridore.equals("Nicolas Roche")) {
			String roche = "twitter.com/#!/nicholasroche";
			return roche;

		} else if (nomeCorridore.equals("George Hincapie")) {
			String hincapie = "twitter.com/#!/ghincapie";
			return hincapie;
		} else if (nomeCorridore.equals("Mikel Astarloza")) {
			String astarloza = "twitter.com/#!/mikelastarloza";
			return astarloza;
		} else if (nomeCorridore.equals("Gorka Izagirre")) {
			String izagirre = "twitter.com/#!/izainsausti";
			return izagirre;
		} else if (nomeCorridore.equals("Matthew Goss")) {
			String goss = "twitter.com/#!/mattgoss1986";
			return goss;

		} else if (nomeCorridore.equals("Brett Lancaster")) {
			String lancaster = "twitter.com/#!/bdlancaster";
			return lancaster;
			
			
		} else if (nomeCorridore.equals("Jelle Vanendert")) {
			String vanendert = "twitter.com/#!/jellevanendert";
			return vanendert;
			
		} else if (nomeCorridore.equals("Alejandro Valverde")) {
			String valverde = "twitter.com/#!/alejanvalverde";
			return valverde;
			
		} else if (nomeCorridore.equals("Levi Leipheimer")) {
			String leipheimer = "twitter.com/#!/LeviLeipheimer";
			return leipheimer;
			
		} else if (nomeCorridore.equals("Aleksandr Vinokurov")) {
			String leipheimer = "twitter.com/#!/alexandrevino";
			return leipheimer;
		} else if (nomeCorridore.equals("Mark Renshaw")) {
			String leipheimer = "twitter.com/#!/Mark_Renshaw";
			return leipheimer;
		} else if (nomeCorridore.equals("Luis Leon Sanchez")) {
			String leipheimer = "http://twitter.com/#!/LLEONSANCHEZ";
			return leipheimer;
		} else if (nomeCorridore.equals("Robert Gesink")) {
			String leipheimer = "twitter.com/#!/RGUpdate";
			return leipheimer;
		} else if (nomeCorridore.equals("Bradley Wiggins")) {
			String leipheimer = "twitter.com/#!/bradwiggins";
			return leipheimer;
		} else if (nomeCorridore.equals("Ryder Hesjedal")) {
			String leipheimer = "twitter.com/#!/ryder_hesjedal";
			return leipheimer;
		} else if (nomeCorridore.equals("Fabian Cancellara")) {
			String leipheimer = "twitter.com/#!/f_cancellara";
			return leipheimer;
		} else if (nomeCorridore.equals("Frank Schleck")) {
			String leipheimer = "twitter.com/#!/schleckfrank";
			return leipheimer;
			
			
			

		} else
			return "";

	}

}
